<?php get_header();?>
<?php get_template_part('includes/full-slider'); ?>
<?php $sidebar_position = get_option('reedwan_sidebar_position', 'true');?>
<?php if($sidebar_position=='left'):  ?>
<!-- Left Sidebar -->
<div class="grid_4 sidebar">
	<?php get_sidebar();?>
</div> 
<?php endif; ?>

<?php
	$home_layout = get_option('reedwan_homelayout');
	if($home_layout == "Blog Style One (Traditional)"){
		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
		query_posts("post_type=post&paged=".$paged);
		get_template_part('includes/blog-style-one');	
	}
	if($home_layout == "Blog Style Two (Half Width)"){ 
		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
		query_posts("post_type=post&paged=".$paged);
		get_template_part('includes/blog-style-two');
	}
	if($home_layout == "Blog Style Three (Full Width)"){ 
		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
		query_posts("post_type=post&paged=".$paged);
		get_template_part('includes/blog-style-three');
	}
	if($home_layout == "Blog Style Four (No Featured Image)"){ 
		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
		query_posts("post_type=post&paged=".$paged);
		get_template_part('includes/blog-style-four');
	}
	if($home_layout == "Magazine"){ 
		get_template_part('includes/magazine');
	}
	if($home_layout == "none"){ 
	}
?>

<?php if($sidebar_position=='right'):  ?>
<!-- Right Sidebar -->
<div class="grid_4 sidebar">
	<?php get_sidebar();?>
</div>
<?php endif; ?>

<?php get_footer(); ?>